<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title><s:text name="核算项目--现金流量项目"></s:text></title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" src="js/sorttable.js"></script>
		<script language="JavaScript" src="js/public.js"></script>
		<script type="text/javascript" src="js/date1.js"></script>
		<script type="text/javascript" src="js/validate.js"></script>
		<script type="text/javascript">
	function validate() {
		var supplierCode = document.getElementById("cashRunOffCode");
		var supplierName = document.getElementById("cashRunOffName");

		if (!isNotNull(supplierCode, '代码')
				|| !f_check_NumOrLett(supplierCode, '代码')||!f_check_ZhOrNumOrLett(supplierCode, '代码'))
			return false;
		if (!isNotNull(supplierName, '名称')|| !f_check_ZhOrNumOrLett(supplierName, '名称'))
			return false;
	}
	function showList() {
		window.location.href("cash.action");
	}
</script>
	</head>

	<body>
		<div id="info_all" style="width: 284px;">
			<div id="info_top">
				<s:text name="核算项目--现金流量项目"></s:text>
			</div>
			<s:form action="addCash.action" method="post" theme="simple"
				onsubmit="return validate()">
				<div style="width: 280px; margin-top: 6px;">
					<table
						style="margin-top: 10px; background: #fbfbfb; color: #403040;"
						align="center">
						<tr>
							<td>
								<s:text name="代码："></s:text>
							</td>
							<td align="center">
								<s:hidden name="cashModel.cashRunOffId"></s:hidden>
								<s:textfield name="cashModel.cashRunOffCode" size="12"
									id="cashRunOffCode" maxlength="12"></s:textfield>
							</td>
						</tr>
						<tr>
							<td>
								<s:text name="名称："></s:text>
							</td>
							<td align="center">
								<s:textfield name="cashModel.cashRunOffName" size="12"
									id="cashRunOffName" maxlength="12"></s:textfield>
							</td>
						</tr>

						<tr>
							<td>
								<div style="margin: 6px; text-align: right;">
									<s:submit value="保存" onfocus="this.blur()"
										onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" id="btnsize"></s:submit>
								</div>
							</td>
							<td align="center">
								<div>
									<input type="button" value="返回" onClick="history.go(-1)"
										onFocus="this.blur()" onMouseOver="this.className='btnover'"
										onmouseout="this.className='btnout'" class="btnsize" />
								</div>
							</td>
						</tr>
					</table>
				</div>
			</s:form>
		</div>
	</body>
</html>